setBufferData

abstract fun setBufferData(uri: Uri, offset: Int, data: ByteBuffer)

Set the data of a buffer.

Parameters

uri

the uri of the buffer.

offset

the offset in bytes at which to start writing.

data

the data to write. Note that it has to be a direct ByteBuffer, created either via ByteBuffer.allocateDirect or via JNI NewDirectByteBuffer API.